home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / CDTools / Viewers / QT / Install qt < prev    next >
Text File  |  1997-03-23  |  3KB  |  138 lines

  1. ; qt installation script
  2. ; by Marcus Comstedt <marcus@lysator.liu.se>
  3.  
  4. (complete 0)
  5.  
  6. (select
  7.  (askchoice
  8.   (prompt "\nPlease select the appropriate binary\nthat you want to install\n")
  9.   (choices "68020" "68020+fpu" "68030-68060" "68030+fpu" "68040-68060+fpu")
  10.   (help "By selecting the CPU that matches your machine, you will "
  11.     "get a binary specially optimized for your configuration.  "
  12.     "If you are unsure, select 68020.\n\n" @askchoice-help)
  13.   (default 0))
  14.  (set qt_binary "qt")
  15.  (set qt_binary "qt.020fpu")
  16.  (set qt_binary "qt.030")
  17.  (set qt_binary "qt.030fpu")
  18.  (set qt_binary "qt.040fpu")
  19. )
  20.  
  21. (complete 5)
  22.  
  23. (select
  24.  (askchoice
  25.   (prompt "\nDo you want regular or MagicWB icons installed?\n")
  26.   (choices "Regular" "MagicWB")
  27.   (help "Selecting MagicWB will install 8 colour icons using the "
  28.     "Magic Workbench palette.  Selecting regular will "
  29.     "install plain 4 colour icons\n\n" @askchoice-help)
  30.   (default 0))
  31.  (set icondir "")
  32.  (set icondir "MagicWB")
  33. )
  34.  
  35. (complete 10)
  36.  
  37. (set bindir
  38.  (askdir
  39.   (prompt "Select the directory where you want to install the executables")
  40.   (help "This should be a directory where you can easily access qt "
  41.     "via Workbench or CLI/Shell.\n\n" @askdir-help)
  42.   (default @default-dest)
  43.   (disk)
  44.  )
  45. )
  46.  
  47. (set @default-dest bindir)
  48.  
  49. (complete 15)
  50.  
  51. (set instopts
  52.  (askoptions
  53.   (prompt "Select which binaries to install")
  54.   (help "qt is the main QuickTime replay program.  flatten is a tool to "
  55.     "convert movies in two-fork format.  Select which of these you want "
  56.     "to install.\n\n" @askoptions-help)
  57.   (choices "qt" "flatten")
  58.  )
  59. )
  60.  
  61. (complete 20)
  62.  
  63. (if
  64.  (bitand instopts 1)
  65.  (copyfiles
  66.   (prompt ("\nCopying qt to %s." bindir))
  67.   (source qt_binary)
  68.   (dest bindir)
  69.   (newname "qt")
  70.  )
  71. )
  72.  
  73. (if
  74.  (bitand instopts 2)
  75.  (copyfiles
  76.   (prompt ("\nCopying flatten to %s." bindir))
  77.   (source "flatten")
  78.   (dest bindir)
  79.   (newname "flatten")
  80.  )
  81. )
  82.  
  83. (complete 35)
  84.  
  85. (if
  86.  (bitand instopts 1)
  87.  (copyfiles
  88.   (prompt ("\nCopying qt.info to %s." bindir))
  89.   (source (tackon icondir "qt.info"))
  90.   (dest bindir)
  91.   (newname "qt.info")
  92.   (noposition)
  93.  )
  94. )
  95.  
  96. (if
  97.  (bitand instopts 2)
  98.  (copyfiles
  99.   (prompt ("\nCopying flatten.info to %s." bindir))
  100.   (source (tackon icondir "flatten.info"))
  101.   (dest bindir)
  102.   (newname "flatten.info")
  103.   (noposition)
  104.  )
  105. )
  106.  
  107. (complete 55)
  108.  
  109. (if (askbool (prompt "Do you wish to install the AmigaGuide documentation?")
  110.     (help @askbool-help)
  111.     (default 1))
  112.  (
  113.   (set docdir 
  114.    (askdir
  115.     (prompt "Select the directory where you want the qt documentation")
  116.     (help @askdir-help)
  117.     (default @default-dest)))
  118.  
  119.   (complete 60)
  120.  
  121.   (copyfiles
  122.    (prompt ("\nCopying qt.guide to %s." docdir))
  123.    (source "qt.guide")
  124.    (dest docdir))
  125.  
  126.   (complete 80)
  127.  
  128.   (copyfiles
  129.    (prompt ("\nCopying qt.guide.info to %s." docdir))
  130.    (source (tackon icondir "qt.guide.info"))
  131.    (dest docdir)
  132.    (noposition))
  133.  )
  134. )
  135.  
  136. (complete 100)
  137.  
  138.